package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalTime;
import java.util.Date;

import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * 动车信息对象 gf_train
 *
 * @author ruoyi
 * @date 2022-06-16
 */
@Data
public class GfTrain extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 列车id
     */
    private Long trainId;

    /**
     * 列车编号
     */
    @Excel(name = "列车编号")
    private String trainNumber;

    /**
     * 起点站
     */
    @Excel(name = "起点站")
    private String trainStartId;

    /**
     * 终点站
     */
    @Excel(name = "终点站")
    private String trainEndId;

    /**
     * 发车时间
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "发车时间", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull(message = "发车时间不能为空")
    private LocalTime trainStartTime;

    /**
     * 到达时间
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "到达时间", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull(message = "到达时间不能为空")
    private LocalTime trainEndTime;

    /**
     * 发车日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发车日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trainDateTime;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private Integer isDel;
}
